package ascloud.biz.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import ascloud.biz.model.Legacy;

public class LegacyMapper implements RowMapper<Legacy> {

	@Override
	public Legacy mapRow(ResultSet rs, int rowNum) throws SQLException {
		Legacy legacy = new Legacy();
		legacy.setId(rs.getLong("id"));
		legacy.setName(rs.getString("name"));
		return legacy;
	}

}
